import "./utils/polyfill.js";

// app.ts
App<IAppOption>({
  globalData: {
    accountInfo: undefined,
    weilaCore: undefined,
    openId: undefined,
    sessionKey: undefined,
    unionid: undefined,
    eventEmitter: undefined,
  },
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    this.globalData.accountInfo = wx.getAccountInfoSync();
  },
})

